package com.sf.marathon.soul.service;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sf.marathon.soul.Common;
import com.sf.marathon.soul.core.base.BaseService;
import com.sf.marathon.soul.core.base.OperationTypeEnum;
import com.sf.marathon.soul.core.constant.Constans;
import com.sf.marathon.soul.dao.ProMarketBaseMapper;
import com.sf.marathon.soul.domain.ExpressGroup;
import com.sf.marathon.soul.domain.ProMarketBase;

/**
 * <p>
 * 专业市场基本信息表 服务实现类
 * </p>
 *
 * @author mokeo
 * @since 2017-12-15
 */
@Service
public class ProMarketBaseService extends BaseService<ProMarketBaseMapper, ProMarketBase> {
    @Autowired
    ExpressGroupService groupService;

    @Override
    protected String doSave(OperationTypeEnum opTypeEnum, ProMarketBase data) {
        super.doSave(opTypeEnum, data);
        groupService.generateGroup(data);
        return Constans.SUCCESS;
    }


}
